package eraserhead.xml.response;

import org.w3c.dom.Node;

import xml.Message;
import client.IMessageHandler;
import eraserhead.xml.XmlNode;

/**
 * Response handler for Close
 * @author Michael Checca
 */
public class CloseResponse implements IMessageHandler {

	@Override
	public void process(Message response) {
		Node close = XmlNode.findNode(response.contents, "closeResponse");
		if (close != null) {
			String id = XmlNode.getAttribute(close, "id");
			System.out.println(String.format("CloseResponse received [id: %s]", id));
		}
	}
}
